package top.xierongsheng.user.model;


import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 系统资源表
 *
 * @auther 谢荣生
 * @datetime 2020/12/31 11:03
 */
@Data
@TableName("sys_resource")
public class SysResource implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private String id;

    private String parentId;

    private String name;

    private String url;

    private Integer type;

    private Integer level;

    private Integer priority;

    private String icon;

    private String permission;

    private Integer status;

    private String creatorId;

    private String updateId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
